{% load i18n grp_tags %}

<div id="header">
    <div class="branding">&nbsp;</div>
    <!-- Title -->
    <div class="admin-title"><a href="/">{% get_admin_title %}</a></div>
    {% if user.is_authenticated and user.is_staff %}
    <!-- Bookmarks (temporary) -->
    <ul id="bookmarks">
        <li id="toggle-bookmarks-listing" class="enabled"><a href="javascript://">{% trans "Bookmarks" %}</a></li>
        <ul id="bookmarks-listing">
            <li class="no-entries"><p>{% trans "Loading Bookmarks" %}</p></li>
        </ul>
        <li class="action bookmark-add">
            <a href="#" id="toggle-bookmark-add" class="bookmark-add"> </a>
        </li>
        <li class="action bookmark-remove">
            <a href="#" class="bookmark-remove"> </a>
        </li>
        <li class="action bookmark-manage">
            <a href="#" class="bookmark-manage"> </a>
        </li>
    </ul>
    <ul id="user-tools">
        <!-- Username -->
        <li><strong>{% firstof user.first_name user.username %}</strong></li>
        <!-- Userlinks -->
        {% block userlinks %}
        <!-- Documentation -->
        {% url django-admindocs-docroot as docsroot %}
        {% if docsroot %}
        <li><a href="{{ docsroot }}">{% trans 'Documentation' %}</a></li>
        {% endif %}
        <!-- Change Password -->
        {% url admin:password_change as password_change_url %}
        {% if password_change_url %}
        <li><a href="{{ password_change_url }}">
        {% else %}
        <li><a href="{{ root_path }}password_change/">
        {% endif %}
        {% trans 'Change password' %}</a></li>
        <!-- Logout -->
        {% url admin:logout as logout_url %}
        {% if logout_url %}
        <li><a href="{{ logout_url }}">
        {% else %}
        <li><a href="{{ root_path }}logout/">
        {% endif %}
        {% trans 'Log out' %}</a></li>
        {% endblock %}
    </ul>
    {% endif %}
</div>
